<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>首页</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="css/index.css"/>
	</head>
	<body>
		
		<div class="web">
			<!--logo-->
			<div class="logo">
				<img src="img/logo.png"/>
				<span>哔帮BitBand</span>
			</div>
			
			<!--圣诞树-->
			<div class="main">
				<div class="tree">
					<img src="img/tree.png"/>
				</div>
				
				<div class="tree_bottom">
					<img src="img/img-1.png"/>
				</div>
				
				<div class="tree_mid">
					<img src="img/cao.png"/>
				</div>
				
				<!--球、星、苹果-->
				<div class="Big_star">
					<img src="img/img-4.png"/>
				</div>
				<div class="Big_ball">
					<img src="img/img-3.png"/>
				</div>
				<div class="Big_app">
					<img src="img/img-2.png"/>
				</div>
				
				<!--圣诞欢乐送-->
				<div class="font">
					<img src="img/font.png"/>
				</div>
				
				<!--星星-->
				<div class="Star star-1">
					<img src="img/star-1.png"/>
				</div>
				<div class="Star star-2">
					<img src="img/star-2.png"/>
				</div>
				<div class="Star star-3">
					<img src="img/star-3.png"/>
				</div>
				<div class="Star star-4">
					<img src="img/star-4.png"/>
				</div>
				
				<div class="Star star-1 star-11">
					<img src="img/star-1.png"/>
				</div>
				<div class="Star star-2 star-22">
					<img src="img/star-2.png"/>
				</div>
				<div class="Star star-3 star-33">
					<img src="img/star-3.png"/>
				</div>
				<div class="Star star-4 star-44">
					<img src="img/star-4.png"/>
				</div>
			</div>
			
			<!--抽奖按钮-->
			<a href="chou_jiang.html">
				<div class="cj_bottom">
					<div class="jian_tou">
						<img src="img/jian_tou.png"/>
					</div>
					<p>我要抽奖</p>
				</div>
			</a>
			
			<div class="cj_star1 ani">
				<img src="img/star-3.png"/>
			</div>
			<div class="cj_star2 ani">
				<img src="img/star-4.png"/>
			</div>
		</div>
		
	</body>
	
	<!--rem-->
	<script>document.body.style.height  = window.innerHeight+"px";</script>
	<script type="text/javascript">
		/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
				//字体大小=1个rem单位表示多少个像素*(设备的宽度/设计宽度)
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
	</script>
</html>
